package com.example.test_witns.pojo;

public class Favorite {
    private long favoriteId;
    private String userEmail;
    private long blogId;
    private java.util.Date favoriteTime;

    public Favorite(String userEmail, long blogId) {
        this.blogId = blogId;
        this.userEmail = userEmail;
    }

    // Getters and Setters
    public long getFavoriteId() {
        return favoriteId;
    }

    public void setFavoriteId(long favoriteId) {
        this.favoriteId = favoriteId;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public long getBlogId() {
        return blogId;
    }

    public void setBlogId(long blogId) {
        this.blogId = blogId;
    }

    public java.util.Date getFavoriteTime() {
        return favoriteTime;
    }

    public void setFavoriteTime(java.util.Date favoriteTime) {
        this.favoriteTime = favoriteTime;
    }

    @Override
    public String toString() {
        return "Favorite{" +
                "favoriteId=" + favoriteId +
                ", userEmail='" + userEmail + '\'' +
                ", blogId=" + blogId +
                ", favoriteTime=" + favoriteTime +
                '}';
    }
}